# coding=utf-8
from django.conf.urls import patterns, url, include

from django.contrib import admin
from blwpy import settings

admin.autodiscover()

urlpatterns = patterns('',

    #Home
    url(r'^$', 'blw.views.index'),
    #Search
    #url(r'^find/', 'blw.views.find', name='find'),
    url(r'^find_(?P<expr>.*)$', 'blw.views.find', name='find'),
    url(r'^admin/', include(admin.site.urls)),
    #Static and media files
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
    #autocomplete
    #url(r'^search_json$', 'blw.views.searchAll', name='searchAll'),
     
)
